<?php
	error_reporting(0);					//屏蔽错误信息
	header("Content-type: text/html; charset=utf-8");
	date_default_timezone_set('PRC');		//设置中国时区
	
	define('ROOT_PATH',dirname(__FILE__));
	define('MODEL_PATH','model/');

	//类文件的自动加载
	function __autoload($classname){
		require_once(ROOT_PATH.'/../'.MODEL_PATH.$classname.'.class.php');
	}
	
	//数据库初始化配置
	include_once 'config.php';
	DBConfig::setConfig($DBConfig);
	
	require('template.inc.php');
	
	$commonc = new common();
	
	$bace = $commonc->getInfo("setting where id='15'","value");
	$bace = $bace['value'];
?>